<div class="sys-title">
	<h2 id="TopName">客户端类型配置</h2></div>
<div class="sys-content">
	<div class="panel">

		<div class="panel-head">
			<div class="panel-title">
				<h3>节点列表</h3>
			</div>
			<div class="btnbar"> <button class="btn btn-8" id="addbtn">添加集群</button>
				<button id="addLoad" class="btn btn-minor">导入</button>
				<input id="loadAdd" class="btn btn-minor" type="file" style="display: none;"></input>
				<button class="btn btn-minor" id="loadOut">导出</button></div>
			<div class="filter">
				<input type="text" placeholder="IP地址" id="keyVal">
				<button class="btn" id="searchKey">检索</button>
			</div>
		</div>

		<div class="panel-body" id="datasource">

		</div>
		<!--panel-body end-->
	</div>
</div>

<div class="dialog dialog-sm" id="add">
	<div class="dialog-win">
		<div class="dialog-head"><span>添加采集集群</span>
			<a class="close" href="javascript:void(0);"><i class="icon-close"></i></a>
		</div>
		<div class="dialog-body">
			<div class="form-box">
				<div class="form-item">
					<div class="form-title"><em class="fc-danger">*</em>名称：</div>
					<div class="form-content"><input class="input" type="text" id="groupName"></div>
				</div>
				<div class="form-item">
					<div class="form-title">类型：</div>
					<div class="form-content">
						<select class="stype" id="groupType">
							<option value="1">分光</option>
							<option value="2" selected>FTP</option>
							<option value="3">应用系统</option>
							<option value="4">采集源节点</option>
						</select>
					</div>
				</div>
				<div class="form-item">
					<div class="form-title">网吧等数据采集集群：</div>
					<div class="form-content">
						<select id="ftpType">
							<option value="">FTP-3G联通集群</option>
							<option value="">FTP-3G电信集群</option>
							<option value="">网吧等数据采集集群</option>
						</select>
					</div>
				</div>
				<div class="form-item">
					<div class="form-title">描述：</div>
					<div class="form-content"><textarea class="input" id="groupTxt"></textarea></div>
				</div>
			</div>
		</div>
		<div class="dialog-foot"><button class="btn" id="save">确认</button><button id="cancel" class="btn btn-minor">取消</button></div>
	</div>
</div>
<!--dialog end-->

<div class="dialog dialog-sm" id="edit">
	<div class="dialog-win">
		<div class="dialog-head"><span>添加采集集群</span>
			<a class="close" href="javascript:void(0);"><i class="icon-close"></i></a>
		</div>
		<div class="dialog-body">
			<div class="form-box">
				<div class="form-item">
					<div class="form-title"><em class="fc-danger">*</em>名称：</div>
					<div class="form-content"><input class="input" type="text" id="groupName2"></div>
				</div>
				<div class="form-item">
					<div class="form-title">类型：</div>
					<div class="form-content">
						<select class="stype" id="groupType2">
							<option value="1">分光</option>
							<option value="2" >FTP</option>
							<option value="3">应用系统</option>
							<option value="4">采集源节点</option>
						</select>
					</div>
				</div>
				<div class="form-item">
					<div class="form-title">网吧等数据采集集群：</div>
					<div class="form-content">
						<select id="ftpType2">
							<option value="">FTP-3G联通集群</option>
							<option value="">FTP-3G电信集群</option>
							<option value="">网吧等数据采集集群</option>
						</select>
					</div>
				</div>
				<div class="form-item">
					<div class="form-title">描述：</div>
					<div class="form-content"><textarea class="input" id="groupTxt2"></textarea></div>
				</div>
			</div>
		</div>
		<div class="dialog-foot"><button class="btn" id="save2">确认</button><button id="cancel" class="btn btn-minor">取消</button></div>
	</div>
</div>
<!--dialog end-->

<script>
	$(document).ready(function() {
		$(".source-item").on("click", "strong", function() {
			if($(this).parents(".source-item").hasClass('open')) {
				$(this).parents(".source-item").removeClass('open');
				$(this).parent().next("ul").show();
			} else {
				$(this).parents(".source-item").addClass('open');
				$(this).parent().next("ul").hide();
			}
		})

	})
</script>
<script src="scripts/app/safe/sysManage/sysServer.js"></script>